/**
* ...
* @author Default
* @version 0.1
*/

package com.crlclr.utils {
	import flash.geom.Rectangle;
	

	public class QSize {
		public var width:int;
		public var height:int;
		public static function get Empty():QSize {
			return new QSize(0, 0);
		}
		public function QSize(width:int=0,height:int=0) {
			this.width = width;
			this.height = height;
		}
		public function getScale(avg:Number):QSize {
			return new QSize(this.width *avg,this.height *avg);
		}
		public function getHalf(flip:int=1):QSize {
			return getScale(flip*.5);
		}
		
		public function getRect():Rectangle{
			return new Rectangle(0,0,width,height);
		}
		
	}
	
}
